<!--
  ~ ***** BEGIN LICENSE BLOCK *****
  ~ Version: MPL 1.1
  ~
  ~ The contents of this file are subject to the Mozilla Public License Version
  ~ 1.1 (the "License"); you may not use this file except in compliance with
  ~ the License. You may obtain a copy of the License at
  ~ http://www.mozilla.org/MPL/
  ~
  ~ Software distributed under the License is distributed on an "AS IS" basis,
  ~ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  ~ for the specific language governing rights and limitations under the
  ~ License.
  ~
  ~ The Original Code is Topless JSF.
  ~
  ~ The Initial Developer of the Original Code is
  ~ Marco Antonio Villalobos, Jr. (mvillalobos@kineteque.com).
  ~ Portions created by the Initial Developer are Copyright (C) 2010
  ~ the Initial Developer. All Rights Reserved.
  ~
  ~ Contributor(s):
  ~
  ~ Marco Antonio Villalobos, Jr. (mvillalobos@kineteque.com).
  ~
  ~ ***** END LICENSE BLOCK *****
  -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:fn="http://java.sun.com/jsp/jstl/functions"
      xmlns:topless="http://java.sun.com/jsf/composite/components/topless"
      xmlns:tfn="http://kineteque/topless/jsf">
    <body>
        <ui:composition>
            <c:forEach begin="#{first}" end="#{first+columns-1}" items="#{cc.includes}" var="col" varStatus="v">
                <h:column>
                    <ui:decorate template="header.xhtml">
                        <ui:param name="index" value="#{v.index}"/>
                        <ui:define name="asc">
                            <ui:insert name="ascSort"></ui:insert>
                        </ui:define>
                        <ui:define name="desc">
                            <ui:insert name="descSort"></ui:insert>
                        </ui:define>
                        <ui:define name="none">
                            <ui:insert name="noSort"></ui:insert>
                        </ui:define>
                    </ui:decorate>
                    #{row[col]}
                </h:column>
            </c:forEach>
        </ui:composition>
    </body>
</html>